﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace InvasiveSpecies
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string a = TextBox1.Text;
            string b = TextBox2.Text;

            double numA, numB;

            if (!double.TryParse(a, out numA))
            {
                Label1.Text = "don't type text!!!";
                return;
            }
            if (!double.TryParse(b, out numB))
            {
                Label1.Text = "don't type text!!!";
                return;
            }

            Label1.Text = (numA + numB).ToString();
        }
    }
}
